import request from "@/utils/request";
import { baseUrlConfig } from "@/config/config";
const baseProcessPath = baseUrlConfig.processBaseUrl;
const baseGeneralPath = baseUrlConfig.businessBaseUrl;
/*
 *分页查询
 */

export const repairFindPage = (data: any) => {
  return request({
    url: baseProcessPath + "/rep/apply/find/page",
    method: "post",
    data: {
      ...data,
      // accept: 1,
    },
  });
};

export const repairActive = (data: any) => {
  return request({
    url: baseProcessPath + "/rep/apply/activation",
    method: "post",
    data,
  });
};

export const repairNodeFind = (data: any) => {
  return request({
    url: baseProcessPath + "/rep/node/find",
    method: "post",
    data,
  });
};

export const repairExportXls = (data: any) => {
  return request({
    responseType: "blob",
    url: baseProcessPath + "/rep/apply/exportXls",
    method: "post",
    data,
  });
};

export const repairFindMemberPeopel = (data: any) => {
  return request({
    url: baseProcessPath + "/rep/member/find",
    method: "post",
    data,
  });
};

/*
 *问题类型
 */

export const repairFindProblem = (data: any) => {
  return request({
    url: baseGeneralPath + "/rep/problem/find",
    method: "post",
    data,
  });
};

/*
 *驳回
 */

export const repairReject = (data: any) => {
  return request({
    url: baseProcessPath + "/rep/apply/reject",
    method: "post",
    data,
  });
};

/*
 *挂起
 */

export const repairSuspend = (data: any) => {
  return request({
    url: baseProcessPath + "/rep/apply/suspend",
    method: "post",
    data,
  });
};

/*
 *指派
 */

export const repairAssign = (data: any) => {
  return request({
    url: baseProcessPath + "/rep/apply/assign",
    method: "post",
    data,
  });
};

/*
 *设备类型
 */

export const repairFindEqpt = (data: any) => {
  return request({
    url: baseGeneralPath + "/eqpt/type/find",
    method: "post",
    data,
  });
};

//通过
export const repairfinish=(data: any)=>{
  return request({
    url: baseProcessPath + "/rep/apply/finish",
    method: "post",
    data,
  });
}